<?php
header('content-type:text/xml; charset=utf-8');

require_once '../requires.php';

$cfg = array(
	'type' => 'atom',
	'data' => array(
		'title' => 'test atom',
		'link' => 'http://www.example.com/framework/Feed/example/atom.php',
		'updated' => '2003-12-13T18:30:02Z',
		'author' => 'tom.wang',
		'id' => 'urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6',
		
		'entrys' => array(
			array(
				'title' => 'title 1',
				'link' => 'http://www.baidu.com',
				'id' => 'urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6',
				'updated' => '2003-12-13T18:30:02Z',
				'summary' => 'summary 1',
			),
			array(
				'title' => 'title 2',
				'link' => 'http://www.baidu.com',
				'id' => 'urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6',
				'updated' => '2003-12-13T18:30:02Z',
				'summary' => 'summary 2',
			),
		),
	),
);

$feed = new Feed($cfg);

$feed->render();
?>